package com.stagewebserver.webserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stagewebserver.webserver.mapper.OrderItemMapper;
import com.stagecommon.common.pojo.OrderItem;
import com.stagecommon.common.pojo.RespBean;
import com.stagewebserver.webserver.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: yxl
 * @since: 2022-01-15
 **/
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {

    @Autowired
    private OrderItemMapper orderItemMapper;

    @Override
    public RespBean searchOrderItemByOrderNum(String orderNum) {
        return RespBean.operationSuccess("查询成功",200,orderItemMapper.selectOrderItemByOrderNum(orderNum));
    }
}
